package com.linyx.simpleboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.linyx.simpleboot.service.AccountService;

@RestController
public class AccountContronller {
	
	@Autowired
	private AccountService accountService;
	
	@PostMapping(value ="/updateAccount")
	public String queryUser(){
	accountService.update();;
	return "success";
	}
	
	
	@PostMapping(value="/insertAccount")
	public String insertAccount(){
	accountService.update();;
	return "success";
	}


}
